package j04zuoye.fly;
/*
包含飞机名name, 容量capacity, 包含一个开门方法openDoor, 关门方法closeDoor,
 */
public class Bird implements IFly{
    String name;
    String sex;

    public void eat() {
        System.out.println("吃饭");
    }
    public void sleep() {
        System.out.println("睡觉");
    }

    @Override
    public void fly() {
        System.out.println(name+"飞起来了！");
    }
}
